﻿using Maxleaf.EDI.API.Contract;
using Maxleaf.EDI.Infrastructure;

namespace Maxleaf.EDI.Client.ExternalServices
{
    public class K3Service :IK3Service
    {
        private ServiceProxy<IK3Service> GetService()
        {
            var result = new ServiceProxy<IK3Service>("K3.Point");

            return result;
        }

        public void Import(Maxleaf.EDI.API.Contract.K3.Commands.ImportCommand command)
        {
            using (var client = this.GetService())
            {
                client.Proxy.Import(command);
            }
        }
    }
}